package main

import (
	"cloudmusic/config"
	"cloudmusic/model"
	"cloudmusic/router"
	. "cloudmusic/service"
	"fmt"
)

func init() {
	model.GetMusicList()
	//Spider.Register()
	//CatSpider.Register()
}
func main() {
	go FileUploader()
	//exec.DefaultRun("web")
	defer func() {
		if err := recover(); err != nil { //产生了panic异常
			fmt.Println(err)
		}
	}()
	router.InitRouter().Run(config.RunHost)
}
